﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="website_admin_knowlegebase_contenteditor" Codefile="contenteditor.aspx.cs" %>

<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<%@ Register Src="../../admin/_root/_controls/ctlNavBar.ascx" TagName="ctlNavBar"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script src="../_common/scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../admin/_static/_jQuery/jquery_validator.js"></script>

    <script type="text/javascript" language="javascript" src="../_common/scripts/util.js"></script>

    <link href="../../_common/styles/form_2_0.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(setup);
        function setup() {
        } 
    </script>

</head>
<body scrool="no" style="margin: 0px; padding: 0px;">

    <script type="text/javascript">
    <!--
        function ____doPostBack(eventTarget) {
            var theForm = document.forms["crmForm"];
            if (!theForm) {
                theForm = document.crmForm;
            }
            if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
                theForm.____EVENTTARGET.value = eventTarget;
                theForm.submit();
            }
        }
    // -->
    </script>

    <div id="success" style="position: absolute; z-index: 300; height: 130px; width: 284px;
        left: 50%; top: 50%; margin-left: -150px; margin-top: -80px;">
        <div style="position: absolute; z-index: 300; width: 270px; height: 90px; background-color: #FFFFFF;
            border: solid #6699CC 1px; font-size: 14px;">
            <div style="height: 64px; line-height: 150%; padding: 0px 3px 0px 3px;" align="center">
                <br />
                <table>
                    <tr>
                        <td valign="top">
                            <img border="0" src="../_imgs/admin/progress.gif" />
                        </td>
                        <td valign="middle" style="font-size: 14px; width: 150px;">
                            Loading ...<br />
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </div>
        <div style="position: absolute; width: 270px; height: 108px; z-index: 299; left: 4px;
            top: 5px; background-color: #E8E8E8; border: #E8E8E8 1px solid; display: none;">
        </div>
    </div>

    <script type="text/javascript">
        document.getElementById("success").style.display = "none"; 
    </script>

    <script src="../../admin/_static/_common/scripts/divcover.js" type="text/javascript"></script>

    <form id="crmForm" runat="server">
    <input type="hidden" id="txtArticleId" name="txtArticleId" runat="server" />
    <input type="hidden" id="txtCategoryId" name="txtCategoryId" runat="server" />
    <input type="hidden" id="txtTitle" name="txtTitle" runat="server" />
    <input type="hidden" name="____EVENTTARGET" id="____EVENTTARGET" value="" />
    <div class="divAreas">
        <div class="boxTopBar_1">
            <div class="navBar">
                <uc1:ctlNavBar ID="ctlNavBar1" runat="server" />
            </div>
        </div>
        <table cellpadding="0" cellspacing="0" class="stdTable" style="margin: 5px 5px 10px 5px; float: left;">
            <tbody>
                <tr style="height: 32px; background: #F0F0F0; font-weight: bold; text-align: left;">
                    <td style="line-height: 32px; font-size: 15px; padding-left: 10px;">
                        <%=Title %>
                    </td>
                </tr>
                <tr>
                    <td valign="top" style="padding: 5px 10px 5px 5px;">
                        <CE:Editor ID="txtContent" runat="server" AutoConfigure="Full" Width="100%" Height="420px" CustomCulture="zh-CHS">
                        </CE:Editor>
                    </td>
                </tr>
                <tr style="height: 35px;">
                    <td class="WIN-Form-Bottom" style="padding-top: 5px;">
                        <input type="button" value="保存" id="btnSave" class="btn_s" onclick="this.disabled=true;success.style.display = 'block';HideOverSels('success');____doPostBack('save');"
                            style="width: 120px; height: 25px; margin: 0px 5px;" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
